package com.ktgj.other.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.other.mapper.RcContractMapper;
import com.ktgj.other.domain.RcContract;
import com.ktgj.other.service.IRcContractService;

/**
 * 专车合同Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-27
 */
@Service
public class RcContractServiceImpl implements IRcContractService 
{
    @Autowired
    private RcContractMapper rcContractMapper;

    /**
     * 查询专车合同
     * 
     * @param contractid 专车合同ID
     * @return 专车合同
     */
    @Override
    public RcContract selectRcContractById(Long contractid)
    {
        return rcContractMapper.selectRcContractById(contractid);
    }

    /**
     * 查询专车合同列表
     * 
     * @param rcContract 专车合同
     * @return 专车合同
     */
    @Override
    public List<RcContract> selectRcContractList(RcContract rcContract)
    {
        return rcContractMapper.selectRcContractList(rcContract);
    }

    /**
     * 新增专车合同
     * 
     * @param rcContract 专车合同
     * @return 结果
     */
    @Override
    public int insertRcContract(RcContract rcContract)
    {
        return rcContractMapper.insertRcContract(rcContract);
    }

    /**
     * 修改专车合同
     * 
     * @param rcContract 专车合同
     * @return 结果
     */
    @Override
    public int updateRcContract(RcContract rcContract)
    {
        return rcContractMapper.updateRcContract(rcContract);
    }

    /**
     * 批量删除专车合同
     * 
     * @param contractids 需要删除的专车合同ID
     * @return 结果
     */
    @Override
    public int deleteRcContractByIds(Long[] contractids)
    {
        return rcContractMapper.deleteRcContractByIds(contractids);
    }

    /**
     * 删除专车合同信息
     * 
     * @param contractid 专车合同ID
     * @return 结果
     */
    @Override
    public int deleteRcContractById(Long contractid)
    {
        return rcContractMapper.deleteRcContractById(contractid);
    }
}
